package com.ls.mybatis.core;


import java.util.List;

/**
 * 解析实体类映射文件
 */
public class MapperInfo {
    private String parameterType; //参数类型
    private String resultType; //返回值类型
    private String sql; //要执行的sql语句
    private List<String> params; //sql语句中的参数名称
    private boolean update = true;

    @Override
    public String toString() {
        return "MapperInfo{" +
                "parameterType='" + parameterType + '\'' +
                ", resultType='" + resultType + '\'' +
                ", sql='" + sql + '\'' +
                ", params=" + params +
                ", update=" + update +
                '}';
    }

    public String getParameterType() {
        return parameterType;
    }

    public void setParameterType(String parameterType) {
        this.parameterType = parameterType;
    }

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public List<String> getParams() {
        return params;
    }

    public void setParams(List<String> params) {
        this.params = params;
    }

    public boolean isUpdate() {
        return update;
    }

    public void setUpdate(boolean update) {
        this.update = update;
    }
}
